#include "Server.hpp"
#include <iostream>
int main()
{
    //管道初始化
    Init init;
    Server server;
    //打开管道
    server.OpenPipeForRead();
    // std::cout << "Server" << std::endl;
    std::string message;
    while(true)
    {
        if(server.RecvPipe(&message) > 0)
        {
            std::cout << "server Say: " << message << std::endl;
        }
    }
    std::cout << "client quit,me too" << std::endl;
    server.ClosePipe();
    return 0;
}
